<html>
<#include "../common/header.ftl">

<body>
<div id="wrapper" class="toggled">

<#--边栏sidebar-->
<#include "../common/nav.ftl">

<#--主要内容content-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <button type="button" onclick="crosRequest();">请求跨域资源</button>
                </div>
            </div>
        </div>
    </div>

</div>
<script type="application/javascript">
    function crosRequest(){
        $.ajax({
            url:'http://localhost:8080/book/home',
            type:'get',
            dataType:'json',
            success:function(data) {
                console.log(data);
            }
        });
    }
</script>
</body>
</html>